<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;cursor:pointer;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0" onclick="SwitchMenu('blog1','blogtext1')">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text="blog_browser"}</td>
                    <td style="text-align:right;padding-right:4px;"><span class="cur" id="blogtext1">[-]</span></td>
                </tr>
            </table>
            <table style="width:100%;" cellspacing="1" cellpadding="1" id="blog1">
                <tr>
                    <td width="10"></td>
                    <td>
<div class="submenu">
<div id="formhide1">
<form method="post" action="{url link='current'}" style="margin:0px;">
<table style="width:100%;" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:8pt;width:70%;vertical-align:top;" class="color">
<table style="width:100%;" cellspacing="0" cellpadding="4">
<tr>
<td style="width:35%;font-size:8pt;text-align:right;" class="color">
{language text="order_by"}:
</td>
<td style="width:75%;font-size:8pt;" class="color">
<select name="field">
	<option value="time"{if $aForm.field == 'time'} selected="selected"{/if}>{language text="time"}</option>
	<option value="view"{if $aForm.field == 'view'} selected="selected"{/if}>{language text="most_viewed"}</option>
	<option value="comment"{if $aForm.field == 'comment'} selected="selected"{/if}>{language text='Mod_Blog.most_talked_about'}</option>
</select>
</td>
</tr>
<tr>
<td style="width:35%;font-size:8pt;text-align:right;" class="color">
{language text="display_mode"}:
</td>
<td style="width:75%;font-size:8pt;" class="color">
<select name="display">
<option value="1"{if $aForm.display == 1} selected="selected"{/if}>{language text="half_text"}</option>
<option value="2"{if $aForm.display == 2} selected="selected"{/if}>{language text="list"}</option>
</select>

/
<select name="pagesize">
<option value="5"{if $aForm.pagesize == 5} selected="selected"{/if}>5 {language text="per_page"}</option>
<option value="11"{if $aForm.pagesize == 11} selected="selected"{/if}>11 {language text="per_page"}</option>
<option value="17"{if $aForm.pagesize == 17} selected="selected"{/if}>17 {language text="per_page"}</option>
</select>
</td>
</tr>
<tr>
<td style="width:35%;font-size:8pt;text-align:right;" class="color">
{language text="view_mode"}:
</td>
<td style="width:75%;font-size:8pt;" class="color">
<select name="mode">
<option value="1"{if $aForm.mode == 1} selected="selected"{/if}>{language text="site_viewer"}</option>
<option value="2"{if $aForm.mode == 2} selected="selected"{/if}>{language text="profile_viewer"}</option>
</select>
</td>
</tr>
</table>

</td><td style="font-size:7pt;width:30%;vertical-align:middle;text-align:center;" class="color">
<input type="submit" name="act[blogbrowse_show]" value="{language text="apply_browse_settings"}" class="mainmenu6" onclick="document.getElementById('formhide1').style.display='none';document.getElementById('formhide2').style.display='';" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />

</td>
</tr>
</table>

</form>
</div>

<div style="text-align:center;display:none;" id="formhide2">
<table style="margin-left:auto;margin-right:auto;">
<tr>
<td style="font-size:10pt;" class="color">
<b>{language text="updating_browse_settings"}</b>
</td><td>
<table class="pbar3" cellpadding="0" cellspacing="0">
<tr><td>
<span id="progress1">&nbsp; &nbsp;</span>
<span id="progress2">&nbsp; &nbsp;</span>
<span id="progress3">&nbsp; &nbsp;</span>
<span id="progress4">&nbsp; &nbsp;</span>
<span id="progress5">&nbsp; &nbsp;</span>
<span id="progress6">&nbsp; &nbsp;</span>
<span id="progress7">&nbsp; &nbsp;</span>
<span id="progress8">&nbsp; &nbsp;</span>
<span id="progress9">&nbsp; &nbsp;</span>
<span id="progress10">&nbsp; &nbsp;</span>
<span id="progress11">&nbsp; &nbsp;</span>
</td></tr></table>
</td></tr></table>
<script type="text/javascript">do_prog(11,200);</script>
</div>
</div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

{if $sTag}
<div style="padding:10px;font-size:12pt;font-weight:bold;">
	<br />
	{language text="tag_view" extra=$sTag}
	<br />
</div>
{/if}

{if $iCnt}
<div style="font-size:9pt; padding-bottom:10px;">
	<br />
	{str_replace text="`viewing_ifrom_ito_out_of_367`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
	<br />
</div>
{/if}

<div style="font-size:9pt; padding-bottom:10px;">
	{include file="$sRootPath/_blocks/pager.html"}
	<br />
	<br />
</div>

{foreach from=$aItems item=aItem name=aitems key=key}
{if $aForm.display == 1}

<div class="border2" style="padding:10px;">

<div align="center" style="float:right; padding-right:5px;">
	<a href="{url link='public.user' name=$aItem.user}">
	{Account::Avatar sUser=$aItem.user iSize=75 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
	</a><br /><br />
{if getParam('blog_digg_it')}
 	<script type="text/javascript">
	digg_url = '{url link='public.user.blogs.view' name=$aItem.user id=$aItem.id foxseotitle=$aItem.title}';
	</script>
	<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
	{/if}
</div>
<table>
<tr>
	</td>
	<td style="font-size:16pt; vertical-align:top;">
		<span style="font-weight:bold;"><a href="{if $aForm.mode == 1}{url link='public.blog.view' id=$aItem.id foxseotitle=$aItem.title}{else}{url link='public.user.blogs.view' name=$aItem.user id=$aItem.id foxseotitle=$aItem.title}{/if}">{$aItem.title|truncate:'75'|process_code|escape}</a></span>
		<div style="padding:6px; font-size:8pt;">
		{language text='Mod_Blog.posted_on'} {$aItem.time|date_format:$sDateTimeFormat} {language text='Mod_Blog.lowercase_by'} <a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a>
		</div>
	</td>
</tr>
</table>
<div style="padding:8px; font-size:9pt;">
	{$aItem.text|process_code}{if $aItem.is_long}... <a href="{if $aForm.mode == 1}{url link='public.blog.view' id=$aItem.id foxseotitle=$aItem.title}{else}{url link='public.user.blogs.view' name=$aItem.user id=$aItem.id foxseotitle=$aItem.title}{/if}">{language text='Mod_Blog.read_more'}</a>{/if}
	<br />
	{if $aItem.tags}
	<p>
		<b>{language text='Mod_Tag.tags'}:</b> {$aItem.tags|tags:'public.blog.main'}
	</p>
	<br />
	{/if}
	<br />
	<div style="padding:8px;font-size:9pt;" class="border4">
	<a class="color2" href="{url link='public.blog.view' id=$aItem.id foxseotitle=$aItem.title}#comment">{language text='Mod_Blog.var_comments' replace=$aItem.comment}</a>
	<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
	<a class="color2" href="{if $aForm.mode == 1}{url link='public.blog.view' id=$aItem.id foxseotitle=$aItem.title}{else}{url link='public.user.blogs.view' name=$aItem.user id=$aItem.id foxseotitle=$aItem.title}{/if}">{language text="view_entry"}</a>
	{if $bAdmin}
	<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
	<a class="color2" href="{url link='public.blog.main' delete=$aItem.id}" onclick="return confirm('{language text="are_you_sure_that_you_wan_193"}');">{language text="delete"}</a>
	{/if}
	</div>
</div>
<br />
<br />
</div>
<br />
<br />
{else}
<table style="width:100%;" cellpadding="10" cellspacing="0">
<tr>
	<td{if $key % 2 == 0} class="border13"{/if}>
	<table style="width:100%;">
	<tr>
	<td style="width:60%;font-size:8pt;" class="color">
		<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
		<a href="{if $aForm.mode == 1}{url link='public.blog.view' id=$aItem.id foxseotitle=$aItem.title}{else}{url link='public.user.blogs' name=$aItem.user}{/if}">{$aItem.title|process_code|escape}</a> <br />
		<div style="padding-left:25px;padding-top:5px;">
		{language text="by"}: <a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a>
 		</div>
	<td style="width:20%;font-size:8pt;" class="color"> {$aItem.time|date_format:$sDateTimeFormat} </td>
	</tr>
	</table>
	</td>
</tr>
</table>
{/if}
{foreachelse}
<div class="message_info">
{language text="there_are_no_blogs_yet"}
</div>
{/foreach}

<div style="font-size:9pt; padding-bottom:10px;">
	{include file="$sRootPath/_blocks/pager.html"}
</div>
<br />
<br />